
<!--banner开始-->
<div class="banner">
	
  <img src="<?php echo json_decode($banner[0]['path'])[0];?>"/>

</div>
<!--新闻开始-->
<div class="news">
          <p>您的位置:<a href="<?php echo'index.php?c='.C.'&hid='.$hid;?>"><?php echo $curcate['category_name']?></a>>><a href="<?php echo'index.php?c='.C.'&hid='.$hid.'&sid='.$sid;?>"><?php echo $cursec['category_name']?></a></p>
    <div class="new_content">
        <div class="new_left">        	
               <div class="left_header">
                        <p>N</p>
                        <h6><?php echo $curcate['category_name']?></h6>
                        <span>EWS CENTER</span>
               </div>
                <ul>

                    <?php foreach($secondary as $sec):?>

                    <li <?php if($sid==$sec['id']){echo "class='this'";}?>><a href="<?php echo'index.php?c='.C.'&hid='.$hid.'&sid='.$sec['id'];?>"><span></span><?php echo $sec['category_name'];?><span></span></a></li>
                    
                    <!-- class="this" -->
                    <?php endforeach;?>

                </ul>
            <img src="<?php echo IMG;?>lianxiren.jpg"/>
               <div class="left_bottom">
                <img src="<?php echo IMG;?>phone.jpg"/></a>
                <p>联系我们</p>
                <span>020-88888888</span>
               </div>
        </div>
        <div class="new_right">
           	  <ul>

                <?php foreach($data as $news ):?>
            	   <li>
                    <h4><?php echo date('d',$news['create_time'])?><span><?php echo date('Y/m月',$news['create_time'])?></span></h4>  
                    <h5><a href="<?php echo 'index.php?c=news_details&hid='.$hid.'&sid='.$sid.'&id='.$news['id'];?>"><?php echo $news['title']?></a></h5>
                    <p><?php echo $news['remark']?></p>
                    <img src="<?php echo IMG;?>icon.jpg" />
                </li>
                 <?php endforeach;?>

               </ul>
               <ol>
                 <?php echo $page;?>
              </ol>
        </div>
    </div>
</div>

<script type="text/javascript">
  $(".new_right>ol>li>a").live('click',function(){
    // alert('111');return false;
    var url = $(this).attr('href');

    $.ajax({
      url : url , 

      dataType : 'json',

      success:function(msg){
        $(".new_right>ol").html(msg.page);

        var len = msg.data.length;

        var list = '';

        for(var i = 0 ; i < len ; i++){

          list += "<li>";
          list += "<h4>"+msg.data[i].d_time+"<span>"+msg.data[i].Ym_time+"</span></h4>"  
          list += "<h5><a href='index.php?c=news_details&hid="+msg.hid+"&sid="+msg.sid+"&id="+msg.data[i].id+"'>"+msg.data[i].title+"</a></h5>";
          list += "<p>"+msg.data[i].remark+"</p>";
          list += "<img src='"+msg.img+"icon.jpg' />";
          list += "</li>";

        }
        $(".new_right>ul").html(list);
        return false;
      }

    })
    return false;
  })
</script>